package org.csy.generic.test00.demo03;

import java.lang.reflect.InvocationTargetException;

/**
 * @author CSY
 * @date 2025 - 03 - 26
 */
public class GenericTest {
    public <T> T create(Class<T> clazz){
        try {
            return clazz.getConstructor().newInstance();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
}
